<?php namespace system\database\migrations;
use houdunwang\database\build\Migration;
use houdunwang\database\build\Blueprint;
use houdunwang\database\Schema;
class CreateSlideTable extends Migration {
    //执行
	public function up() {
		Schema::create( 'slide', function ( Blueprint $table ) {
			$table->increments( 'slide_id' );
            $table->timestamps();
			$table->tinyInteger('slide_sort')->defaults(0)->comment('排序');
			$table->string('slide_thumb',100)->defaults("")->comment('缩略图');
			$table->string('slide_url')->defaults("")->comment('跳转链接');



		});
    }

    //回滚
    public function down() {
        Schema::drop( 'slide' );
    }
}